package com.sky.controller.mobile;

import com.sky.entity.ShoppingCart;
import com.sky.result.Result;
import com.sky.service.CategoryService;
import com.sky.service.ShoppingCartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("购物车相关接口")
@RequestMapping("/user/shoppingCart")
public class ShoppingCartController {

    @Autowired
    ShoppingCartService shoppingCartService;

    @ApiOperation("查看购物车")
    @GetMapping("/list")
    public Result getCharList(){
        return shoppingCartService.getCartList();
    }
}
